package game;

import java.awt.Graphics2D;
import java.awt.Point;
import java.util.LinkedList;

public class Inimigo_04 extends BaseEnemy
{

	private static final long serialVersionUID = 1L;
	static LinkedList<Bomb> bombs = new LinkedList<Bomb>();
	
	public Inimigo_04(int indexImage, Point position, Point size, Point sPos,
			Point recorte, Point rowLine, float time, boolean input, int HP,
			float speedShoot2) 
	{
		super(indexImage, position, size, sPos, recorte, rowLine, time, input, HP,
				speedShoot2);
		
		isBomber = true;

	}
	
	@Override
	public void Update(Player p) 
	{	
		automatic = true;
		super.Update(p);

		if(isDead)
		{
			Inimigo_04.bombs.remove(this);
			bombs.add(new Bomb(new Point((int)this.position.getX(), (int)this.position.getY()), (int)this.animationType.getY()));
			
		}
	}
	@Override
	public void draw(Graphics2D g2d) {
		// TODO Auto-generated method stub
		super.draw(g2d);
		
		
	}

}
